  function hasChinese(s){
	var rname=/[\u4E00-\u9FA5]/; 
	if(rname.test(s)){
		return true;
	}else{
		return false;
	}
}
function isChinese(str){ 
	var reg = /^[\u4E00-\u9FA5]+$/; 
	if(!reg.test(str)){
		return false; 
		}
	else {
		return true; 
		}
}
function isEmail(str){
	var chk=true;
	if (str===''|| !str.match(/^[\w\.\-]+@([\w\-]+\.)+[a-z]{2,4}$/ig)){chk=false;}
	return chk;
}
function isTel(ui){
	var valid=/(^0\d{2,3}\-\d{7,8}$)|(^0?13[0,1,3,5,6,8,9]\d{7,8}$)/;
	return (isEmpty(ui)||valid.test(ui));
}
function isChinaMob(ui){
	var valid=/^0?1[3,5,8][0,1,3,5,6,8,9]\d{11}$/;
	valid = /^(13[0-9]|15[0|1|2|3|6|7|8|9]|18[7|8|9])\d{8}$/;
	if(!valid.test(ui)){
	 return false; 
	}
	else{
	return true; 
	}
}
function isChinaID(id){
    if(!(id.length == 15 || id.length == 18)){
     return false;
    }
 	var valid=/^(\d{2})\d{4}(((\d{2})(\d{2})(\d{2})(\d{3}))|((\d{4})(\d{2})(\d{2})(\d{3}[x\d])))$/;
	return (valid.test(id));
}
function isEmpty(ui) {
	return (ui===null||ui==="");
}
//字母开头，允许5-16字节，允许字母数字下划线
   function isPassWord(s){
     var filter=/^[a-zA-Z0-9_][a-zA-Z0-9_]{4,15}$/;
     return (filter.test(s));
   }
  //字母开头，允许5-16字节，允许字母数字下划线
function isUsername(s){
     var filter=/^[a-zA-Z][a-zA-Z0-9_]{4,15}$/;
     return (filter.test(s));
   } 
    //字母开头，允许5-16字节，允许字母数字
function isDomain(s){
     var filter=/^[a-zA-Z][a-zA-Z0-9_]{4,15}$/;
     return (filter.test(s));
   } 